const express = require("express");
const cors = require("cors");

let server = express();

//中间件
server.use(cors());
server.use(express.static("../src"));
server.use(express.static("../public"));

server.use(express.json());
server.use(express.urlencoded({ extended: false }));

server.use("/account", require("./routes/Account.Router"))

server.listen(8080, function () {
    console.log("服务器启动完毕!");
})